// 有效对象
const isValidObject = (params) => Object.prototype.toString.call(params) === '[object Object]' && Object.keys(params).length

// 有效函数
const isValiaFn = (fn) => typeof fn === 'function'

export default {
  isValidObject,
  isValiaFn
}